<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class MsgPushRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'uid'			=> 'bail|required',
			'title'			=> 'bail|required',
			'content'		=> 'bail|required',
        ];
    }
    
    public function messages()
	{
		return [
			'mobile.required'		=> '缺少用户id',
			'title.required'		=> '缺少推送标题',
			'content.required'		=> '缺少推送内容',
		];
	}
}
